package com.tuling.learnmongodb.common;

import lombok.Data;

@Data
public class ResponseModel<T> {
    private String code;
    private String msg;
    private T data;

    public ResponseModel(){
        this.code = "00000000";
        this.msg = "成功";
    }
    public ResponseModel(String code, String msg){
        this.code = code;
        this.msg = msg;
        this.data = null;
    }
}
